﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using IService;
using Models;
using Infrastructure;
using IRepository;

namespace ConcreteService
{
    public class ExecuteRecordService : IExecuteRecordService
    {
        public void CreateRecord(ExecuteRecord record)
        {
            IExecuteRecordRepository repo = FactoryCreator.Create<IExecuteRecordRepository>();
            repo.CreateRecord(record);
        }

        public ExecuteRecord GetRecord(string code)
        {
            throw new NotImplementedException();
        }

        public List<ExecuteRecord> ListRecord()
        {
            IExecuteRecordRepository repo = FactoryCreator.Create<IExecuteRecordRepository>();
            return repo.ListRecord();
        }

        public List<ExecuteRecord> ListRecord(DateTime startTime, DateTime endTime)
        {
            throw new NotImplementedException();
        }

        public List<ExecuteRecord> ListRecord(string functionName)
        {
            throw new NotImplementedException();
        }

        public List<ExecuteRecord> ListRecord(double costTime)
        {
            throw new NotImplementedException();
        }

        public List<ExecuteRecord> ListRecordByAction(string actionFrom)
        {
            throw new NotImplementedException();
        }
    }
}
